body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f0f2f5;
  color: rgba(0, 0, 0, 0.85);
  transition: all 0.3s;
}

/* 优化后的全局动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translate3d(20px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes pulse {
  0%, 100% { transform: scale3d(1, 1, 1); }
  50% { transform: scale3d(1.02, 1.02, 1); }
}

/* 布局组件样式优化 */
.ant-layout {
  background: #f0f2f5;
}

.ant-layout-header {
  transition: all 0.3s ease;
}

.ant-layout-sider {
  transition: all 0.3s ease;
}

.ant-layout-content {
  transition: all 0.3s ease;
}

/* 卡片样式优化 */
.ant-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ant-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.ant-card-head {
  border-bottom: 1px solid #f0f0f0;
}

/* 按钮样式优化 */
.ant-btn {
  border-radius: 6px;
  transition: all 0.3s;
}

.ant-btn-primary {
  background: linear-gradient(90deg, #1890ff 0%, #096dd9 100%);
  border: none;
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

.ant-btn-primary:hover {
  background: linear-gradient(90deg, #40a9ff 0%, #1890ff 100%);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.5);
  transform: translateY(-1px);
}

/* 列表样式优化 */
.ant-list-item {
  transition: all 0.3s;
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 12px 16px;
}

.ant-list-item:hover {
  background-color: rgba(24, 144, 255, 0.05);
  transform: translateX(2px);
}

/* 标签样式优化 */
.ant-tag {
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 8px;
  font-weight: 500;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 表单样式优化 */
.ant-form-item-label > label {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
}

.ant-input, .ant-select-selector {
  border-radius: 6px !important;
  transition: all 0.3s;
}

.ant-input:hover, .ant-select-selector:hover {
  border-color: #40a9ff;
}

.ant-input:focus, .ant-select-selector:focus {
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 页面过渡动画 */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms, transform 300ms;
}

.page-exit {
  opacity: 1;
}

.page-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 300ms, transform 300ms;
}

/* 头像样式 */
.ant-avatar {
  transition: all 0.3s;
}

.ant-avatar:hover {
  transform: scale(1.05);
}

/* 菜单样式 */
.ant-menu-item {
  border-radius: 6px;
  margin: 4px 8px !important;
  transition: all 0.3s;
}

.ant-menu-item-selected {
  background: linear-gradient(90deg, rgba(24, 144, 255, 0.1) 0%, rgba(24, 144, 255, 0.2) 100%) !important;
  font-weight: 500;
}

.ant-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
  color: #1890ff !important;
}

/* 下拉菜单样式 */
.ant-dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ant-dropdown-menu-item {
  transition: all 0.2s;
  border-radius: 4px;
  margin: 4px;
}

/* 通知徽章样式 */
.ant-badge-count {
  box-shadow: 0 0 0 1px #fff;
}

/* 分割线样式 */
.ant-divider {
  margin: 12px 0;
}

/* 加载动画样式 */
.ant-spin {
  transition: all 0.3s;
}

.ant-spin-dot-item {
  background-color: #1890ff;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .ant-layout-content {
    padding: 16px !important;
  }
  
  .ant-card {
    border-radius: 8px;
  }
}
